package cn.com.chengmandian.xh.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 电池回购表
 * </p>
 *
 * @author AutoGenerator
 */
@Getter
@Setter
@TableName("xh_battery_repurchase")
@ApiModel(value = "XhBatteryRepurchase对象", description = "电池回购表")
public class XhBatteryRepurchase implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("用户id")
    private Integer memberId;

    private Integer couponId;

    @ApiModelProperty("回购订单编号")
    private String repurchaseNo;

    @ApiModelProperty("回购订单当前状态  枚举类 com.xingheng.core.biz.constant.RepurchaseStatusEnum")
    private Integer repurchaseCurrentStatus;

    @ApiModelProperty("系统估价")
    private BigDecimal systemPrice;

    @ApiModelProperty("最终回收价")
    private BigDecimal finalPrice;

    @ApiModelProperty("最终回收价格 确定人员id")
    private Integer opsId;

    @ApiModelProperty("电池编号")
    private String batteryNo;

    @ApiModelProperty("城满电电池id 可以为空")
    private Integer batteryId;

    @ApiModelProperty("回购模式 1快递邮寄(废弃） 2 送达门店 3-上门回收")
    private Integer repurchaseMode;

    @ApiModelProperty("送达电池地址 门店地址")
    private String repurchaseAddress;

    @ApiModelProperty("电池回购门店id，关联xh_shop")
    private Integer repurchaseSiteId;

    @ApiModelProperty("（废弃）快递表id 和 xh_express id字段关联")
    private Integer expressId;

    @ApiModelProperty("回收价格发放方式 1优惠卷 2余额")
    private Integer priceMode;

    @ApiModelProperty("上门回收-需要新电池 0-不需要 1-需要")
    private Integer needNew;

    @ApiModelProperty("上门回收-预约起始时间")
    private Date appointTimeStart;

    @ApiModelProperty("上门回收-预约截止时间")
    private Date appointTimeEnd;

    @ApiModelProperty("上门回收-地址信息ID")
    private Integer addressId;

    @ApiModelProperty("创建人ID")
    private Integer creatorId;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("创建人")
    private String creator;

    @ApiModelProperty("更新时间")
    private Date modifyTime;

    @ApiModelProperty("是否删除：0.否(默认)1.是")
    @TableLogic(value = "0" ,delval = "1")
    private Integer isDeleted;

}
